<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="rich" uri="http://richfaces.ajax4jsf.org/rich"%>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" type="text/css"
	href="/PortalDoCerrado/style/estilos.css" media="screen" />
<script type="text/javascript"
	src="/PortalDoCerrado/resources/jquery.maskedinput-1.2.1.js"></script>

</head>
<body>
	<f:view>
		<h:form>
			<h:graphicImage value="/images/uegcerrado.jpg" style=" height : 287px;"/>
			<fieldset style="COLOR: #804040; height : 135px;">
				<legend>Usuário Logado</legend>
				<h:outputText value="Nome: " style="color: #804040;font-size: large;background-color:White;font-family: 'Aharoni';"/>
				<h:outputText value="#{loginMB.lg.email}" />
				<h:commandLink value="" action="#{pessoaMB.logout}">
					
				</h:commandLink><h:graphicImage value="/images/sair.jpg" alt="Sair" title="Sair" style=" width : 46px;" />
			</fieldset>
			<fieldset style="COLOR: #804040; FONT-WEIGHT: bold;">
				<legend>Administração</legend>
				<rich:panel header="Usuários">
					<h:panelGrid columns="5">
						<h:commandLink id="Adicionar" value="" action="toCadastraPessoa">
							<h:graphicImage value="/images/adicionar.jpg" alt="Adicionar"
								title="Adicionar" />
						</h:commandLink>
						<h:commandLink id="Pesquisar" value="" action="toPesquisaPessoa">
							<h:graphicImage value="/images/pesquisar.jpg" alt="Pesquisar"
								title="Pesquisar" />
						</h:commandLink>
						<h:commandLink id="Remover" value="" action="toRemovePessoa">
							<h:graphicImage value="/images/excluir.jpg" alt="Remover"
								title="Remover" />
						</h:commandLink>
						<h:commandLink id="Atualizar" value="" action="toAtualizaPessoa">
							<h:graphicImage value="/images/atualizar.jpg" alt="Atualizar"
								title="Atualizar" />
						</h:commandLink>
						<br />
					</h:panelGrid>
				</rich:panel>
				<rich:panel header="Coleções">
					<h:commandLink id="Cadastrar" value="" action="toCadastraColecao">
						<h:graphicImage value="/images/adicionar.jpg" alt="Cadastrar" title="Cadastrar" />
					</h:commandLink>&nbsp;
					<h:commandLink id="Pesquisa" value="" action="toPesquisaColecao">
						<h:graphicImage value="/images/pesquisar.jpg" alt="Pesquisa" title="Pesquisa" />
					</h:commandLink>
				</rich:panel>
				
				<rich:messages />
			</fieldset>
		</h:form>
	</f:view>
</body>
</html>